package com.ajavaer.framework.job.jobs;

import com.ajavaer.framework.job.type.JobType;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TestJob extends BaseJob {

    public TestJob() {
        super(JobType.Test);
    }

    @Scheduled(cron = "*/3 * * * * ? ")
    @Override
    public void dispatch() {
        super.process();
    }

    @Override
    public boolean runJob() {
        log.info("job {} runing", JobType.Test);
        return true;
    }
}
